package util;

import java.sql.Connection;
import java.sql.DriverManager;
 
public class ConnectionPostgreSqlPool {
 
    private static final String USER = "postgres";
    private static final String PASS = "postgres";
    private static final String DRIVER = "org.postgresql.Driver";
    private static final String URL = "jdbc:postgresql://localhost:5432/obras_pac";
 
    public static Connection getConnectionManual() throws Exception {
 
        Connection constatic = null;
 
        Class.forName(DRIVER);
        DriverManager.setLoginTimeout(1);
        constatic = DriverManager.getConnection(URL, USER, PASS);
 
        return constatic;
    }
}
